<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

    <div id="container">
        <div id="content" class="content"><div id="map" class="umanji_map" style="width:714;height:408;z-index:0;background:#93b2d4;"></div></div>
	</div>

	<form:form action="${buildingNo}" method="POST" commandName="enterprise" enctype="multipart/form-data">
    <table width="714" border="0" cellspacing="0" cellpadding="0">
      
      <tr>
        <td width="714" class="TP30 BP30"><table width="714" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="55"><img src="<c:url value="/images/sub/title05.gif"/>" width="55" height="21"></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td class="td4a4d4a"></td>
            <td class="tde7e7e7"></td>
          </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>
				<!--  이 곳에 위의 div tag 정보 들어감 -->
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="23%" height="37" class="tdd6d7d6_top tdfffbff LP10 font12B_4f4f4f"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> 어떤 업체 및 상점 </td>
                  <td width="77%" class="line_d6d7d6_top line_e7e7e7 LP20 font12_4f4f4f"><form:input path="enterpriseSort" class="input" style="width:230px"/> 
                    <span class="font11_a4813e">예) 분식집, 치과</span>&nbsp;<span class="font11_ff6d00"> (50콘트)</span> </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">상호명</td>
                  <td class="line_e7e7e7 LP20"><form:input path="enterpriseName" class="input" style="width:230px"/>
                      <span class="font11_a4813e">예) 맛나분식, 하얀이치과의원 </span>&nbsp;<span class="font11_ff6d00"> (20콘트)</span> </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">위치 층수 </td>
                  <td class="line_e7e7e7 LP20 font12_4f4f4f">
                    <form:input path="enterpriseFloor" class="input" style="width:80px"/>층
					<span class="font11_ff6d00">(20콘트)</span> 
				  </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">대표전화</td>
                  <td class="line_e7e7e7 LP20">
                  <select id="phoneCom" name="phoneCom" style="width:80px">
					<option value="010" selected="selected">010</option>
					<option value="011">011</option>
					<option value="016">016</option>
					<option value="017">017</option>
					<option value="019">019</option>
				</select>
                    - 
                    <input type="text" id="phoneFirst" name="phoneFirst" class="input" style="width:80px"> - <input type="text" id="phoneLast" name="phoneLast" class="input" style="width:80px"> 
                    <span class="font11_ff6d00"> (10콘트)</span>
					<form:hidden path="phoneNumber" id="phoneNumber"/>
					<form:errors path="phoneNumber" cssClass="errors" /> 
                   </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">홈페이지</td>
                  <td class="line_e7e7e7 LP20"><form:input path="homePageURL" class="input" style="width:230px"/>                     
                    <span class="font11_ff6d00"> (10콘트)</span> </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">이미지</td>
                  <td class="line_e7e7e7 LP20"><input type="file" name="enterpriseImageFileData" class="input" style="width:230px">
                      <span class="font11_ff6d00"> <img src="<c:url value="/images/btn/btn_find.gif"/>" width="64" height="22" align="absmiddle"> <img src="<c:url value="/images/btn/btn_add01.gif"/>" width="64" height="21" align="absmiddle"> &nbsp;(100콘트)</span> </td>
                </tr>
                <tr>
                  <td height="60" class="tdfffbff LP20 font12B_4f4f4f">영업시간</td>
                  <td class="line_e7e7e7 LP20 font12_4f4f4f"><input type="file" name="businessHoursImageFileData" class="input" style="width:230px">
                      <span class="font11_ff6d00"> <img src="<c:url value="/images/btn/btn_find.gif"/>" width="64" height="22" align="absmiddle"> <img src="<c:url value="/images/btn/btn_add01.gif"/>" width="64" height="21" align="absmiddle"> &nbsp;(50콘트)</span> <br>
                        
                      <form:checkbox path="businessHoursEnable" label="24시간, 심야" name="checkbox" value="checkbox"/></td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> 대표품목 </td>
                  <td class="line_e7e7e7 LP20"><form:input path="representativeItems" class="input" style="width:230px"/>
                      <span class="font11_a4813e">예) 임플란트, 김치찌개, 누룽지탕 </span>&nbsp;<span class="font11_ff6d00"> (50콘트)</span> </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">품목/서비스 리스트 </td>
                  <td class="line_e7e7e7 LP20">
                  	<!-- <form:select path="serviceItems" items="${serviceItems}" itemLabel="id" itemValue="title" style="width:230px"/> -->
					<spring:bind path="serviceItems">
						<select name="serviceItemIds" id="serviceItemIds" size="5" multiple="multiple" style="width:230px">
							<c:forEach items="${serviceItemList}" var="svcItem">
								<option value="${svcItem.id}"><c:out value="${svcItem.title}"/> – <c:out value="${svcItem.price}"/></option>
							</c:forEach>
						</select>
					</spring:bind>
                    <img src="<c:url value="/images/btn/btn_add01.gif"/>" width="64" height="21" align="absmiddle" onClick="MM_showHideLayers('img','','show')" style="cursor: pointer;">
                    <span class="font11_ff6d00"> &nbsp;(한품목 완성시 10콘트)</span>
                  </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">모유수유실 </td>
                  <td class="line_e7e7e7 LP20 font12_4f4f4f">
                  <form:checkbox path="breastFeeding" value="true" label="있음" /> 
                  <form:checkbox path="breastFeeding" value="false" label="없음"/>
                      <span class="font11_ff6d00">&nbsp;(20콘트)</span>
                  </td>
                </tr>
                <tr>
                  <td height="37" class="tdfffbff LP20 font12B_4f4f4f">주차 유/무 </td>
                  <td class="line_e7e7e7 LP20 font12_4f4f4f">
                  <form:checkbox path="parkingEnable" label="있음" />
                    <form:checkbox path="batretEnable" label="밧렛" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;대수
                    <form:input path="parkingNumber" class="input" style="width:80px"/>
					대 <img src="<c:url value="/images/btn/btn_find01.gif"/>" width="64" height="21" align="absmiddle">
                    <span class="font11_ff6d00">&nbsp;(20콘트)</span>
                  </td>
                </tr>
                <tr>
                  <td class="tdfffbff TBP810 font12B_4f4f4f" valign="top"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> 이용대상 </td>
                  <td class="line_e7e7e7 TBP8">
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="39%" class=" font12_4f4f4f">
                      <form:radiobutton path="targetUse" value="1" label="연인커플"/>
                      <br>
                      <form:radiobutton path="targetUse" value="2" label="일반인 (직장인/대학생)"/> 
                      <br>
                      <form:radiobutton path="targetUse" value="3" label="중고생"/> 
                      <br>
                      <form:radiobutton path="targetUse" value="4" label="고령자"/>                       
                      <br>
                      <form:radiobutton path="targetUse" value="5" label="중고생"/> 
                      <br>
                      <form:radiobutton path="targetUse" value="6" label="초등"/> 
                      <br>
                      <form:radiobutton path="targetUse" value="7" label="유아"/> 
                      <br>
                      <form:radiobutton path="targetUse" value="8" label="성인(19)"/> 
                      </td>
                      <td width="61%" valign="top" class="font11_ff6d00">(50콘트)<br>
                        <span class="font11_a4813e">내가 이용한 적이 있다.<br> 나는 어떤 대상에 속하는지...</span>
                      </td>
                    </tr>
                  </table>
                  </td>
                </tr>
              </table>
              </td>
            </tr>
          </table>
          <br>
          <table width="153" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="100"><img id="formSubmitBtn" src="<c:url value="/images/btn/btn_save01.gif"/>" width="93" height="25" style="cursor:pointer;"></td>
              <td width="53"><img id="formResetBtn" src="<c:url value="/images/btn/btn_cancle.gif"/>" width="53" height="25" style="cursor:pointer;"></td>
            </tr>
          </table>
          </td>
      </tr>
    </table>
	</form:form>

<div id="svcItemPanel">
  <form:form action="${buildingNo}/svcitem" method="POST" commandName="svcitem">
  <table width="375" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td class="layer_box">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="91%" height="28" align="center" bgcolor="#e8e8e8" class="font12B_4f4f4f">품목/서비스 내용추가 </td>
          <td width="9%" align="center" bgcolor="#e8e8e8" class="font12B_4f4f4f">
          <img id="closeSvcItemWindow" src="<c:url value="/images/btn/btn_close.gif"/>" width="15" height="14" style="cursor: pointer;">
          </td>
        </tr>
      </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="26%" height="37" class="tdd6d7d6_top tdfffbff LP10 font12B_4f4f4f">제목</td>
            <td width="74%" class="line_d6d7d6_top line_e7e7e7 LP10 font12_4f4f4f">
            <form:input path="Title" class="input" style="width:150px"/> 
            <span class="font11_ff6d00">(50콘트)</span></td>
          </tr>

          <tr>
            <td height="37" class="tdfffbff tdfffbff LP10 font12B_4f4f4f">내용</td>
            <td class="line_e7e7e7 LP10 font12_4f4f4f">
                <form:input path="Content" class="input" style="width:150px"/>
                <span class="font11_ff6d00">(50콘트)</span>
            </td>
          </tr>
          <tr>
            <td height="37" class="tdfffbff tdfffbff LP10 font12B_4f4f4f">가격</td>
            <td class="line_e7e7e7 LP10 font12_4f4f4f">
                <form:input path="Price" class="input" style="width:150px"/>
                <span class="font11_ff6d00">(50콘트)</span>
            </td>
          </tr>
          <tr>
            <td height="37" class="tdfffbff LP10 font12B_4f4f4f">할인등 옵션 </td>
            <td class="line_e7e7e7 LP10 font12_4f4f4f">
                <form:input path="discountOption" class="input" style="width:150px"/>
                <span class="font11_ff6d00">(50콘트)</span>
            </td>
          </tr>
          <!-- 
          <tr>
            <td height="37" class="tdfffbff LP10 font12B_4f4f4f">이미지1</td>
            <td class="line_e7e7e7 LP10"><input type="file" name="textfield32" class="input" style="width:120px">
                <img src="<c:url value="/images/btn/btn_find.gif"/>" width="64" height="22" align="absmiddle">
                <span class="font11_ff6d00">(50콘트)</span>
            </td>
          </tr>
           -->
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="50" align="center">
              <img id="svcFormSubmitBtn" src="<c:url value="/images/btn/btn_save01.gif" />" width="93" height="25" style="cursor:pointer;">
              <img id="svcFormSubmitBtn" src="<c:url value="/images/btn/btn_cancle.gif"/>" width="53" height="25" style="cursor:pointer;">
            </td>
          </tr>
        </table>
        </td>
    </tr>
  </table>
  </form:form>
</div>